package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//开启eureka客户端服务
@EnableEurekaClient
//开启熔断降级服务
@EnableFeignClients
//开启熔断仪表盘服务
@EnableHystrixDashboard
//配置web容器扫描路径  mapperscan是spring容器
@ServletComponentScan("com.qf.config")
public class HospitalFeignApplication {

    public static void main(String[] args) {
        SpringApplication.run(HospitalFeignApplication.class, args);
    }

}
